package com.mccrea.pattern.facade;

/**
 * @Classname Popcorn
 * @Description 爆米花机
 * @Date 2021/5/11 0011 15:25
 * @Created by Mccrea_Gao
 */
public class Popcorn {
    private Popcorn() {

    }
    private static final Popcorn INSTANCE = new Popcorn();

    public static Popcorn getInstance() {
        return INSTANCE;
    }

    public void on() {
        System.out.println("爆米花机打开");
    }

    public void off() {
        System.out.println("爆米花机关闭");
    }

    public void poping() {
        System.out.println("爆米花机正在工作");
    }
}
